#ifndef HOURSMINUTESSECONDS_H
#define	HOURSMINUTESSECONDS_H

#include <string>
#include <ostream>

using namespace std;

class HoursMinutesSeconds {
public:
    HoursMinutesSeconds(long seconds);
    virtual ~HoursMinutesSeconds();

    int getHours() const { return hours; }
    int getMinutes() const { return minutes; }
    int getSeconds() const { return seconds; }

    string toString() const;

    friend ostream& operator<<(ostream& os, const HoursMinutesSeconds& hms);	

private:
    int hours;
    int minutes;
    int seconds;

};

#endif	/* HOURSMINUTESSECONDS_H */

